package cn.zcx;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.02.07.10.43
 */
public class T1 {
    public static void main(String[] args) {
        var t=new T1();
        new Thread(()->{
            for (int i = 0; i < 20; i++) {
                try {
                    TimeUnit.SECONDS.sleep(1);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
               // t.add();
            }
        },"T1").start();
    }

    class TT {
        List<String> list = new ArrayList<>();

        public void add() {
            String item="item"+list.size();
            list.add(item);
            System.out.println(item);
        }

        public boolean count() {
            boolean f = false;
            return f;
        }
    }
}
